package page58;

public class Test1 {
    public static void main(String[] args) {
        int n = 10;
        int sum = 0;
        int temp = 1;
        for (int i = 1; i <= n; i++) {
            for (int j = 1; j <= i; j++) {
                temp *= j;
            }
            sum += temp;
            temp = 1;
        }
        System.out.println(sum);
    }
}
